home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
- From: Dan Pop <danpop@mail.cern.ch>
- Newsgroups: comp.lang.c
- Subject: Re: Question on argv
- Date: Thu, 1 Feb 1996 23:45:54 +0100
- Organization: CERN European Lab for Particle Physics
- Message-ID: <9602012245.AA05565@dxmint.cern.ch>
- References: <4eoq3c$45j@usenet.ucs.indiana.edu> <4epkmo$231@transfer.stratus.com> <TANMOY.96Feb1085901@qcd.lanl.gov>
- X-NNTP-Posting-Host: hpl3sn03.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
- X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
-
- tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) writes:
-
- >In article <4epkmo$231@transfer.stratus.com> "David L. McReynolds"
- ><David_McReynolds@vos.stratus.com> writes:
- ><snip>
- > argv is an array of pointers to arrays of chars. Therefore
- > you will have to do something like
- >
- >This is loose wording (but, then, even the standard makes exactly the
- >same mistake in at least one place). argv is an array of pointers to
- >the first elements of arrays of chars. (Pointers to arrays are
- >completely different beasts :-)
-
- No way. argv isn't (and _cannot_ be) an array at all. It is a char **
- pointing to the first char * from an array of char pointers.
-
- If anybody has doubts about this, sizeof argv should clear them up.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-